package org.example.examsystem.mapper;


import org.example.examsystem.entity.Teacher ;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Optional;

@Mapper
public interface TeacherMapper {
    List<Teacher> getTeachers(@Param("offset") int offset, @Param("limit") int limit);
    int getTotalTeachers();
    int addTeacher(Teacher teacher);
    int updateTeacher(Teacher teacher);
    int deleteTeacher(int userid);
    int batchDeleteTeachers(@Param("ids") List<Integer> ids);
    Optional<Teacher> findTeacherById(int userid);

}